package com.tansun.easycare.rule.datamodel.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * 枚举项管理Entity
 * @author hejiatai
 * @version 2017-12-08
 */
public class RuleEnum extends RuleBaseEntity<RuleEnum> {
	
	private static final long serialVersionUID = 1L;
	private String enumName;		// 名称
	private String enumCode;		// 码值
	private String enumType;		// 类型
	private String projectCode;		// 规则库编码
	
	//查询用，用来区分枚举项目列表和枚举类型列表
	private boolean searchEnumType;
	public RuleEnum() {
		super();
	}

	public RuleEnum(String id){
		super(id);
	}

	@Length(min=0, max=50, message="名称长度必须介于 0 和 50 之间")
	public String getEnumName() {
		return enumName;
	}

	public void setEnumName(String enumName) {
		this.enumName = enumName;
	}
	
	@Length(min=0, max=50, message="码值长度必须介于 0 和 50 之间")
	public String getEnumCode() {
		return enumCode;
	}

	public void setEnumCode(String enumCode) {
		this.enumCode = enumCode;
	}
	
	@Length(min=0, max=50, message="类型长度必须介于 0 和 50 之间")
	public String getEnumType() {
		return enumType;
	}

	public void setEnumType(String enumType) {
		this.enumType = enumType;
	}
	
	@Length(min=0, max=50, message="规则库编码长度必须介于 0 和 50 之间")
	public String getProjectCode() {
		return projectCode;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}

	public boolean isSearchEnumType() {
		return searchEnumType;
	}

	public void setSearchEnumType(boolean searchEnumType) {
		this.searchEnumType = searchEnumType;
	}

}